# /usr/bin/python3

# Author: 爱编程的章老师
# @Time: 2021/1/11 0011
# E-mail: Bluesand2010@163.com
import sys

import pygame


def load():
    pygame.init()
    screen = pygame.display.set_mode((800, 600))

    # image_surface = pygame.image.load("3.png").convert_alpha()
    image_surface = pygame.image.load("3.png").convert()
    screen.blit(image_surface, (0,0))
    pygame.display.update()


    while 1:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                sys.exit()



def save():
    pygame.init()
    screen = pygame.display.set_mode((800, 600))
    surface_a = pygame.Surface((100,100))
    pygame.draw.circle(surface_a, "red", (50,50), 30)
    pygame.image.save(surface_a, "a_red_circle.jpg")
    while 1:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                sys.exit()



if __name__ == "__main__":
    save()